<!DOCTYPE html>
<html xmlns:shiro="http://www.w3.org/1999/xhtml" xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="@{include} :: header"></head>
<body>
	<div class="layuimini-container">
		<div class="layuimini-main">
			<input type="hidden" id="parentId" name="parentId" th:value="${parentId}">
			<script type="text/html" id="toolbarDemo">
				<div class="layui-btn-container">
					<button shiro:hasPermission="sys:menu:add" class="layui-btn layui-btn-sm data-add-btn" lay-event="add" title="在根节点下添加菜单">
						<i class="fa fa-plus" aria-hidden="true"></i>添加
					</button>
				</div>
			</script>
			<table id="munu-table" class="layui-table" lay-filter="munu-table"></table>
			<script type="text/html" id="currentTableBar">
				<a shiro:hasPermission="sys:menu:add" class="layui-btn layui-btn-xs data-count-edit" lay-event="add">添加</a>
				<a shiro:hasPermission="sys:menu:edit" class="layui-btn layui-btn-xs data-count-edit" lay-event="edit">编辑</a>
				<a shiro:hasPermission="sys:menu:remove" class="layui-btn layui-btn-xs layui-btn-danger data-count-delete" lay-event="delete">删除</a>
				{{#  if( d.menuType == 0){ }}
				<a shiro:hasPermission="sys:menu:batchAdd"
				   class="layui-btn layui-btn-xs layui-btn-danger data-count-delete" lay-event="addPlus">
					生成菜单</a>
				{{#  } }}
			</script>
		</div>
	</div>

	<div th:include="include::footer"></div>
	<script th:src="@{/js/appjs/sys/menu/menu.js}"></script>
	<script th:src="@{/plugins/layui/lay-config.js}"></script>
</body>

</html>